package com.example.myapplication;

import android.os.Bundle;
import android.widget.ListView;

import androidx.appcompat.app.AppCompatActivity;

import java.util.ArrayList;
import java.util.List;

public class BorrowRecordActivity extends AppCompatActivity {
    private BorrowDatabaseHelper borrowDbHelper;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_borrow_books); // 专用布局文件
        // 初始化数据库帮助类
        borrowDbHelper = new BorrowDatabaseHelper(this);
    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (borrowDbHelper != null) {
            borrowDbHelper.close();
        }
    }
}